package com.xxc.smartcar;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.xxc.smartcar.blueTooth.BlueToothConnectActivity;
import com.xxc.smartcar.wifi.WifiCarActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.btn_connectWifi).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, WifiCarActivity.class));
            }
        });

        findViewById(R.id.btn_connectBlueTooth).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, BlueToothConnectActivity.class));
            }
        });

    }
}